package gorm.springboot.demo.model

import grails.persistence.Entity
import groovy.transform.ToString

/**
 * 博客
 */
@Entity
@ToString
class Blog {
    String title
    String content
    Person person
    long readTimes
    List<BlogTag> blogTagList
    static hasMany = [blogTagList: BlogTag]
    static mapping = {
        blogTagList lazy: false
    }
}
